package scalab.filters.mappers

/**
* Asserts that products of the mapper are hard dependencies.
*/

trait Hardener extends scalab.core.component.Mapper{
	import scalab.core.dependencies.{Dependency, HardDependency}
	import scalab.caches.NoCache
	setCache(NoCache())
	override def map(d: Dependency): Dependency = HardDependency(d)

}

object Hardener{
	def apply(): Hardener = apply("Hardener")
	def apply(n: String): Hardener = new Hardener{
		val name: String = n
	}
}
